﻿<%@ Page Language="C#" MasterPageFile="~/SupplierPanel/Supplier.Master" AutoEventWireup="true" CodeBehind="DataEntry.aspx.cs" Inherits="Fish_Atlantis.SupplierPanel.DataEntry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    
    <style type="text/css" >
        .style1
        {
            width: 100%;
        }
        .style3
        {
            width: 544px;
            height: 15px;
        }
        .style6
        {
        }
        .style9
        {
            width: 171px;
            height: 15px;
        }
        .style21
        {
            width: 171px;
            height: 9px;
        }
        .style25
        {
            height: 15px;
        }
        .style26
        {
            height: 9px;
        }
        .style42
        {
            width: 171px;
            height: 40px;
        }
        .style44
        {
            height: 40px;
        }
        .style50
        {
            height: 50px;
        }
        .style55
        {
            width: 171px;
            height: 50px;
        }
        .style60
        {
            width: 111px;
            height: 15px;
        }
        .style61
        {
            height: 50px;
        }
        .style62
        {
            width: 111px;
            height: 9px;
        }
        .style63
        {
            width: 111px;
            height: 40px;
        }
        .style64
        {
            height: 65px;
        }
        .style65
        {
            width: 171px;
            height: 65px;
        }
        .style66
        {
            width: 138px;
            height: 40px;
        }
        .style72
        {
            width: 164px;
            height: 40px;
        }
        .style73
        {
            height: 65px;
            width: 111px;
        }
        .style74
        {
            height: 50px;
            width: 111px;
        }
        .style75
        {
            width: 132px;
            height: 15px;
        }
        .style76
        {
            width: 132px;
            height: 65px;
        }
        .style77
        {
            width: 132px;
            height: 9px;
        }
        .style79
        {
            width: 132px;
            height: 50px;
        }
        .style80
        {
            width: 132px;
            height: 40px;
        }
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/register-box.css" rel="stylesheet" type="text/css" />
  </asp:Content> 
   <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server" >    
       <div style="height: auto; margin-top: 25px; background-color: #EEFFFF; margin-right: 0px;" 
           align="center">
    
        <br />
        <table class="style1" align="center">
            <tr>
                <td class="style6" rowspan="13" width="300">
                    <br />
                    &nbsp;&nbsp;
                </td>
                <td align="left" class="style75" height="50" valign="middle">
                    <asp:Label ID="lblExcel" runat="server" Text="Excel导入" 
                        Font-Bold="True" Font-Names="黑体" Font-Size="16pt" 
                        Font-Underline="False" Font-Italic="False" 
                        Font-Overline="False" Font-Strikeout="False"></asp:Label>
                </td>
                <td align="left" class="style9" height="50" valign="middle" colspan="2">
                    &nbsp;</td>
                <td align="left" class="style60" height="50" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style25" height="50" valign="middle">
                    <asp:Button ID="btnExcelSave" runat="server" onclick="btnExcelSave_Click" 
                        Text="导入" Font-Size="Large" />
                </td>
                <td rowspan="13" width="300">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="style76" valign="middle">
                    </td>
                <td align="left" class="style65" valign="middle" colspan="2">
                    <asp:FileUpload ID="fulExcel" runat="server" Width="154px" BorderStyle="Inset" 
                        BorderWidth="1px" />
                    </td>
                <td align="left" class="style73" valign="middle">
                    </td>
                <td align="left" class="style64" valign="middle">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="style75" height="50" valign="middle">
                    &nbsp;</td>
                <td align="left" class="style9" height="50" valign="middle" colspan="2">
                    &nbsp;</td>
                <td align="left" class="style60" height="50" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style25" height="50" valign="middle">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="style75" height="50" valign="middle">
                    &nbsp;</td>
                <td align="left" class="style9" height="50" valign="middle" colspan="2">
                    &nbsp;</td>
                <td align="left" class="style60" height="50" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style25" height="50" valign="middle">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="style75" height="50" valign="middle">
                    &nbsp;</td>
                <td align="left" class="style9" height="50" valign="middle" colspan="2">
                    &nbsp;</td>
                <td align="left" class="style60" height="50" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style25" height="50" valign="middle">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" class="style75" height="50" valign="middle">
                    <asp:Label ID="lblHand" runat="server" Font-Bold="True" Font-Italic="False" 
                        Font-Names="黑体" Font-Overline="False" Font-Size="16pt" 
                        Font-Strikeout="False" Font-Underline="False" 
                        Text="手动输入"></asp:Label>
                </td>
                <td align="left" class="style9" height="50" valign="middle" colspan="2">
                    &nbsp;</td>
                <td align="left" class="style60" height="50" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style25" height="50" valign="middle">
                    <asp:Button ID="tbSave" runat="server" onclick="tbSave_Click" Text="保存" 
                        Font-Size="Large" />
                    </td>
            </tr>
            <tr>
                <td align="left" class="style77" valign="middle">
                    </td>
                <td align="left" class="style21" valign="middle" colspan="2">
                    </td>
                <td align="left" class="style62" valign="middle">
                    </td>
                <td align="left" class="style26" valign="middle">
                    </td>
            </tr>
            <tr>
                <td align="left" class="style80" valign="middle">
                    <asp:Label ID="lblCategory" runat="server" Text="交易鱼种" ForeColor="Black" 
                        Font-Size="Large"></asp:Label>
                </td>
                <td align="left" class="style66" valign="middle">
                    <asp:DropDownList ID="ddlCategory" runat="server" Height="20px" Width="154px" 
                        DataSourceID="FishTypeSource1" DataTextField="Category" 
                        DataValueField="Category" >
                        <asp:ListItem>Salmon</asp:ListItem>
                        <asp:ListItem>Tuna</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="FishTypeSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT DISTINCT [Category] FROM [Fishery]">
                    </asp:SqlDataSource>
                </td>
                <td align="left" class="style72" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style63" valign="middle">
                    <asp:Label ID="lblCustomer" runat="server" Text="顾客名称" ForeColor="Black" 
                        Font-Size="Large"></asp:Label>
                    &nbsp;</td>
                <td align="right" class="style44" valign="middle">
                    <asp:TextBox ID="tbCustomer" runat="server"  onfocus="if(this.value==defaultValue) this.value=''" 
                    onblur="if(!value) value=defaultValue" 
                        style="margin-bottom: 0px">顾客名称</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" class="style80" valign="middle">
                    <asp:Label ID="lblFishery" runat="server" Text="交易渔场" ForeColor="Black" 
                        Font-Size="Large"></asp:Label>
                </td>
                <td align="left" class="style66" valign="middle">
                    <asp:DropDownList ID="ddlFishery" runat="server" Height="20px" Width="154px" 
                        DataSourceID="FisherySource1" DataTextField="FisheryName" 
                        DataValueField="FisheryName" >
                        <asp:ListItem>Caribbean Salmon</asp:ListItem>
                        <asp:ListItem>Hokkaido Salmon</asp:ListItem>
                        <asp:ListItem>Mediterranean Tuna</asp:ListItem>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="FisherySource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT DISTINCT [FisheryName] FROM [Fishery]">
                    </asp:SqlDataSource>
                </td>
                <td align="left" class="style72" valign="middle">
                    &nbsp;</td>
                <td align="right" class="style63" valign="middle">
                    <asp:Label ID="lblAmount" runat="server" Text="交易数量" ForeColor="Black" 
                        Font-Size="Large"></asp:Label>
                &nbsp;</td>
                <td align="right" class="style44" valign="middle">
                    <asp:TextBox ID="tbAmount" runat="server" onfocus="if(this.value==defaultValue) this.value=''" 
                    onblur="if(!value) value=defaultValue">交易数量</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" class="style80" valign="middle">
                    <asp:Label ID="lblPeriod" runat="server" Text="交易时期" ForeColor="Black" 
                        Font-Size="Large"></asp:Label>
                </td>
                <td align="left" class="style42" valign="middle" colspan="2">
                    <asp:DropDownList ID="ChooseYear" runat="server" Width="75px" Height="20px">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ChooseMonth" runat="server" Width="75px" Height="20px">
                    </asp:DropDownList>
                </td>
                <td align="right" class="style63" valign="middle">
                    </td>
                <td align="right" class="style44" valign="middle">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style79">
                    &nbsp;</td>
                <td class="style55" colspan="2">
                    &nbsp;</td>
                <td class="style74">
                    &nbsp;</td>
                <td class="style50" align="right">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style61" colspan="3" align="left">

    <asp:Label ID="WelcomeLable" runat="server" Text="以下是您的交易信息：" Font-Bold="True" 
        Font-Names="黑体" Font-Size="16pt"></asp:Label>
                </td>
                <td class="style74">
                    &nbsp;</td>
                <td class="style50" align="right">
    <asp:Button ID="Details" runat="server" onclick="Details_Click" Text="刷新" Font-Size="Large" />

                </td>
            </tr>
            <tr>
                <td align="justify" class="style3" height="30" valign="middle" colspan="5">
                    <br />
    <asp:GridView ID="GridView1" runat="server" 
        onselectedindexchanged="Page_Load" Width="769px" HorizontalAlign="Justify" AllowPaging="True" 
                        onpageindexchanging="GridView1_PageIndexChanging" Font-Size="Medium" 
                        CellPadding="3" BackColor="White" BorderColor="#CCCCCC" 
                        BorderStyle="None" BorderWidth="1px" style="margin-left: 0px">
        <FooterStyle ForeColor="#000066" BackColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Right" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
                    <br />

                    <br />

                </td>
            </tr>
            </table>
        <br />
    
    </div>

</asp:Content>

